package com.ruoyi.project.pc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 广告、小程序首页图片对象 t_advertisement
 * 
 * @author luaoran
 * @date 2023-06-05
 */
public class Advertisement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 图片序号 */
    @Excel(name = "图片序号")
    private Integer number;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String url;

    /** 文本标题 */
    @Excel(name = "文本标题")
    private String title;

    /** 文本内容 */
    @Excel(name = "文本内容")
    private String description;

    /** 0：轮播图;1:公司介绍图;2:首页单张图 */
    @Excel(name = "0：轮播图;1:公司介绍图;2:首页单张图")
    @NotNull(message = "图片类型不能为空")
    private String type;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("url", getUrl())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
